<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<?php

 require ('../libs/JSMin.php');
 require ('../libs/JsClasses.php');
 
 $jsClasses = new JsClasses();
 $jsClasses->setClassesPath('../js');
 $jsClasses->setClassesCacheDir('../cache');
 $jsClasses->make(array('Ria_JsonRequest_Test'));
 $classesResultJsFileName = $jsClasses->getJsFileName();
?>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>Simple JsClasses Integration on PHP Site Engine</title>
	<script type="text/javascript" src="js/mootools-1.2-core-nc.js"></script>
	<script type="text/javascript" src="<? echo $classesResultJsFileName ?>"></script>
</head>

<body>
	<h1>RIA JsClasses Test Page</h1>
	<form>
		<input type="button" id="jsonTestRequestButton" value="Test JSON Request" />
		<script>
			/**
			 * HTML Request Simple
			 */
			$('jsonTestRequestButton').addEvent('click', function() { 
				new Ria_JsonRequest_Test({
					myParam1 : 23, 
					myParam2 : 'simple text'
				});
			});
		</script>
	</form>
	
</body>
</html>
